package com.fqr;

public class FlexTrigger {

	private TriggerListener listener;

	private String name;
	private String targetJobName;

	public String getTargetJobName() {
		return targetJobName;
	}

	public void setTargetJobName(String targetJobName) {
		this.targetJobName = targetJobName;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setListener(TriggerListener listener) {
		this.listener = listener;
	}

	public TriggerListener getListener() {
		return listener;
	}

	public void fire(TriggerEvent event) {
		if (listener != null)
			listener.onFire(event);
	}
}
